package com.example.tencentimdemo.im

/**
 * 消息类型
 */
abstract class MessageTypeEnum private constructor(){
    abstract val code : Int


    companion object{

        val UNKNOWN by lazy {
            object : MessageTypeEnum(){
                override val code: Int = 0
            }
        }

        val TEXT by lazy {
            object : MessageTypeEnum(){
                override val code: Int = 1
            }
        }

        val IMAGE by lazy {
            object : MessageTypeEnum() {
                override val code: Int = 2
            }
        }

        val VOICE by lazy {
            object : MessageTypeEnum() {
                override val code: Int = 2
            }
        }

        val VIDEO by lazy {
            object : MessageTypeEnum() {
                override val code: Int = 2
            }
        }

        val CUSTOM by lazy {
            object : MessageTypeEnum() {
                override val code: Int = 2
            }
        }

    }

}